<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-cpp">#if __GLASGOW_HASKELL__ &gt;= 709
</span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span class="hs-cpp">
#else
</span><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Module      :  Graphics.Win32.GDI.Region</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- Copyright   :  (c) Alastair Reid, 1997-2003</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- License     :  BSD-style (see the file libraries/base/LICENSE)</span><span>
</span><span id="line-11"></span><span class="hs-comment">--</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Maintainer  :  Esa Ilari Vuokko &lt;ei@vuokko.info&gt;</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Stability   :  provisional</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- A collection of FFI declarations for interfacing with Win32.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Graphics.Win32.GDI.Region</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-21"></span><span>
</span><span id="line-22"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Win32.Types.html"><span class="hs-identifier">System.Win32.Types</span></a></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html"><span class="hs-identifier">Graphics.Win32.GDI.Types</span></a></span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Foreign.html#"><span class="hs-identifier">Foreign</span></a></span><span class="hs-cpp">

#include &quot;windows_cconv.h&quot;
</span><span>
</span><span id="line-29"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-30"></span><span class="hs-comment">-- Regions</span><span>
</span><span id="line-31"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#badRegion"><span class="hs-identifier hs-type">badRegion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-34"></span><span id="badRegion"><span class="annot"><span class="annottext">badRegion :: RegionType -&gt; Bool
</span><a href="Graphics.Win32.GDI.Region.html#badRegion"><span class="hs-identifier hs-var hs-var">badRegion</span></a></span></span><span> </span><span id="local-6989586621679109318"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109318"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109318"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; RegionType -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">||</span></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109318"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; RegionType -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegionType
forall a. Num a =&gt; a
</span><a href="Graphics.Win32.GDI.Types.html#gDI_ERROR"><span class="hs-identifier hs-var">gDI_ERROR</span></a></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#combineRgn"><span class="hs-identifier hs-type">combineRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#ClippingMode"><span class="hs-identifier hs-type">ClippingMode</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-37"></span><span id="combineRgn"><span class="annot"><span class="annottext">combineRgn :: HRGN -&gt; HRGN -&gt; HRGN -&gt; RegionType -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#combineRgn"><span class="hs-identifier hs-var hs-var">combineRgn</span></a></span></span><span> </span><span id="local-6989586621679109313"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109313"><span class="hs-identifier hs-var">dest</span></a></span></span><span> </span><span id="local-6989586621679109312"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109312"><span class="hs-identifier hs-var">src1</span></a></span></span><span> </span><span id="local-6989586621679109311"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109311"><span class="hs-identifier hs-var">src2</span></a></span></span><span> </span><span id="local-6989586621679109310"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109310"><span class="hs-identifier hs-var">mode</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-38"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109313"><span class="hs-identifier hs-var">dest</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO RegionType) -&gt; IO RegionType)
-&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109308"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109308"><span class="hs-identifier hs-var">p_dest</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-39"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109312"><span class="hs-identifier hs-var">src1</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO RegionType) -&gt; IO RegionType)
-&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109307"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109307"><span class="hs-identifier hs-var">p_src1</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-40"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109311"><span class="hs-identifier hs-var">src2</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO RegionType) -&gt; IO RegionType)
-&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109306"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109306"><span class="hs-identifier hs-var">p_src2</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-41"></span><span>  </span><span class="annot"><span class="annottext">(RegionType -&gt; Bool) -&gt; String -&gt; IO RegionType -&gt; IO RegionType
forall a. (a -&gt; Bool) -&gt; String -&gt; IO a -&gt; IO a
</span><a href="System.Win32.Types.html#failIf"><span class="hs-identifier hs-var">failIf</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; Bool
</span><a href="Graphics.Win32.GDI.Region.html#badRegion"><span class="hs-identifier hs-var">badRegion</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CombineRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO RegionType -&gt; IO RegionType) -&gt; IO RegionType -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; Ptr () -&gt; Ptr () -&gt; RegionType -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#c_CombineRgn"><span class="hs-identifier hs-var">c_CombineRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109308"><span class="hs-identifier hs-var">p_dest</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109307"><span class="hs-identifier hs-var">p_src1</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109306"><span class="hs-identifier hs-var">p_src2</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109310"><span class="hs-identifier hs-var">mode</span></a></span><span>
</span><span id="line-42"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CombineRgn&quot;</span><span>
</span><span id="line-43"></span><span>  </span><span id="c_CombineRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CombineRgn"><span class="hs-identifier hs-var">c_CombineRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#ClippingMode"><span class="hs-identifier hs-type">ClippingMode</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#offsetRgn"><span class="hs-identifier hs-type">offsetRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-46"></span><span id="offsetRgn"><span class="annot"><span class="annottext">offsetRgn :: HRGN -&gt; RegionType -&gt; RegionType -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#offsetRgn"><span class="hs-identifier hs-var hs-var">offsetRgn</span></a></span></span><span> </span><span id="local-6989586621679109300"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109300"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109299"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109299"><span class="hs-identifier hs-var">xoff</span></a></span></span><span> </span><span id="local-6989586621679109298"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109298"><span class="hs-identifier hs-var">yoff</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-47"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109300"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO RegionType) -&gt; IO RegionType)
-&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109297"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109297"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-48"></span><span>  </span><span class="annot"><span class="annottext">(RegionType -&gt; Bool) -&gt; String -&gt; IO RegionType -&gt; IO RegionType
forall a. (a -&gt; Bool) -&gt; String -&gt; IO a -&gt; IO a
</span><a href="System.Win32.Types.html#failIf"><span class="hs-identifier hs-var">failIf</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; Bool
</span><a href="Graphics.Win32.GDI.Region.html#badRegion"><span class="hs-identifier hs-var">badRegion</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;OffsetRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO RegionType -&gt; IO RegionType) -&gt; IO RegionType -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; RegionType -&gt; RegionType -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#c_OffsetRgn"><span class="hs-identifier hs-var">c_OffsetRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109297"><span class="hs-identifier hs-var">p_rgn</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109299"><span class="hs-identifier hs-var">xoff</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109298"><span class="hs-identifier hs-var">yoff</span></a></span><span>
</span><span id="line-49"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h OffsetRgn&quot;</span><span>
</span><span id="line-50"></span><span>  </span><span id="c_OffsetRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_OffsetRgn"><span class="hs-identifier hs-var">c_OffsetRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-51"></span><span>
</span><span id="line-52"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#getRgnBox"><span class="hs-identifier hs-type">getRgnBox</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-53"></span><span id="getRgnBox"><span class="annot"><span class="annottext">getRgnBox :: HRGN -&gt; LPRECT -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#getRgnBox"><span class="hs-identifier hs-var hs-var">getRgnBox</span></a></span></span><span> </span><span id="local-6989586621679109294"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109294"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109293"><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109293"><span class="hs-identifier hs-var">p_rect</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-54"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109294"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO RegionType) -&gt; IO RegionType)
-&gt; (Ptr () -&gt; IO RegionType) -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109292"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109292"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-55"></span><span>  </span><span class="annot"><span class="annottext">(RegionType -&gt; Bool) -&gt; String -&gt; IO RegionType -&gt; IO RegionType
forall a. (a -&gt; Bool) -&gt; String -&gt; IO a -&gt; IO a
</span><a href="System.Win32.Types.html#failIf"><span class="hs-identifier hs-var">failIf</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; Bool
</span><a href="Graphics.Win32.GDI.Region.html#badRegion"><span class="hs-identifier hs-var">badRegion</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;GetRgnBox&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO RegionType -&gt; IO RegionType) -&gt; IO RegionType -&gt; IO RegionType
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; LPRECT -&gt; IO RegionType
</span><a href="Graphics.Win32.GDI.Region.html#c_GetRgnBox"><span class="hs-identifier hs-var">c_GetRgnBox</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109292"><span class="hs-identifier hs-var">p_rgn</span></a></span><span> </span><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109293"><span class="hs-identifier hs-var">p_rect</span></a></span><span>
</span><span id="line-56"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetRgnBox&quot;</span><span>
</span><span id="line-57"></span><span>  </span><span id="c_GetRgnBox"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_GetRgnBox"><span class="hs-identifier hs-var">c_GetRgnBox</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RegionType"><span class="hs-identifier hs-type">RegionType</span></a></span><span>
</span><span id="line-58"></span><span>
</span><span id="line-59"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createEllipticRgn"><span class="hs-identifier hs-type">createEllipticRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-60"></span><span id="createEllipticRgn"><span class="annot"><span class="annottext">createEllipticRgn :: RegionType -&gt; RegionType -&gt; RegionType -&gt; RegionType -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createEllipticRgn"><span class="hs-identifier hs-var hs-var">createEllipticRgn</span></a></span></span><span> </span><span id="local-6989586621679109289"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109289"><span class="hs-identifier hs-var">x0</span></a></span></span><span> </span><span id="local-6989586621679109288"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109288"><span class="hs-identifier hs-var">y0</span></a></span></span><span> </span><span id="local-6989586621679109287"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109287"><span class="hs-identifier hs-var">x1</span></a></span></span><span> </span><span id="local-6989586621679109286"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109286"><span class="hs-identifier hs-var">y1</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-61"></span><span>  </span><span id="local-6989586621679109285"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109285"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreateEllipticRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; RegionType -&gt; RegionType -&gt; RegionType -&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreateEllipticRgn"><span class="hs-identifier hs-var">c_CreateEllipticRgn</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109289"><span class="hs-identifier hs-var">x0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109288"><span class="hs-identifier hs-var">y0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109287"><span class="hs-identifier hs-var">x1</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109286"><span class="hs-identifier hs-var">y1</span></a></span><span>
</span><span id="line-62"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109285"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-63"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreateEllipticRgn&quot;</span><span>
</span><span id="line-64"></span><span>  </span><span id="c_CreateEllipticRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreateEllipticRgn"><span class="hs-identifier hs-var">c_CreateEllipticRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-65"></span><span>
</span><span id="line-66"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createEllipticRgnIndirect"><span class="hs-identifier hs-type">createEllipticRgnIndirect</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-67"></span><span id="createEllipticRgnIndirect"><span class="annot"><span class="annottext">createEllipticRgnIndirect :: LPRECT -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createEllipticRgnIndirect"><span class="hs-identifier hs-var hs-var">createEllipticRgnIndirect</span></a></span></span><span> </span><span id="local-6989586621679109280"><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109280"><span class="hs-identifier hs-var">rp</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-68"></span><span>  </span><span id="local-6989586621679109279"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109279"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreateEllipticRgnIndirect&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">LPRECT -&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreateEllipticRgnIndirect"><span class="hs-identifier hs-var">c_CreateEllipticRgnIndirect</span></a></span><span> </span><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109280"><span class="hs-identifier hs-var">rp</span></a></span><span>
</span><span id="line-69"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109279"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-70"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreateEllipticRgnIndirect&quot;</span><span>
</span><span id="line-71"></span><span>  </span><span id="c_CreateEllipticRgnIndirect"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreateEllipticRgnIndirect"><span class="hs-identifier hs-var">c_CreateEllipticRgnIndirect</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createRectRgn"><span class="hs-identifier hs-type">createRectRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-74"></span><span id="createRectRgn"><span class="annot"><span class="annottext">createRectRgn :: RegionType -&gt; RegionType -&gt; RegionType -&gt; RegionType -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createRectRgn"><span class="hs-identifier hs-var hs-var">createRectRgn</span></a></span></span><span> </span><span id="local-6989586621679109276"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109276"><span class="hs-identifier hs-var">x0</span></a></span></span><span> </span><span id="local-6989586621679109275"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109275"><span class="hs-identifier hs-var">y0</span></a></span></span><span> </span><span id="local-6989586621679109274"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109274"><span class="hs-identifier hs-var">x1</span></a></span></span><span> </span><span id="local-6989586621679109273"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109273"><span class="hs-identifier hs-var">y1</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-75"></span><span>  </span><span id="local-6989586621679109272"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109272"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreateRectRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType -&gt; RegionType -&gt; RegionType -&gt; RegionType -&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreateRectRgn"><span class="hs-identifier hs-var">c_CreateRectRgn</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109276"><span class="hs-identifier hs-var">x0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109275"><span class="hs-identifier hs-var">y0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109274"><span class="hs-identifier hs-var">x1</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109273"><span class="hs-identifier hs-var">y1</span></a></span><span>
</span><span id="line-76"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109272"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-77"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreateRectRgn&quot;</span><span>
</span><span id="line-78"></span><span>  </span><span id="c_CreateRectRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreateRectRgn"><span class="hs-identifier hs-var">c_CreateRectRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-79"></span><span>
</span><span id="line-80"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createRectRgnIndirect"><span class="hs-identifier hs-type">createRectRgnIndirect</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-81"></span><span id="createRectRgnIndirect"><span class="annot"><span class="annottext">createRectRgnIndirect :: LPRECT -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createRectRgnIndirect"><span class="hs-identifier hs-var hs-var">createRectRgnIndirect</span></a></span></span><span> </span><span id="local-6989586621679109269"><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109269"><span class="hs-identifier hs-var">rp</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-82"></span><span>  </span><span id="local-6989586621679109268"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109268"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreateRectRgnIndirect&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">LPRECT -&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreateRectRgnIndirect"><span class="hs-identifier hs-var">c_CreateRectRgnIndirect</span></a></span><span> </span><span class="annot"><span class="annottext">LPRECT
</span><a href="#local-6989586621679109269"><span class="hs-identifier hs-var">rp</span></a></span><span>
</span><span id="line-83"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109268"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-84"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreateRectRgnIndirect&quot;</span><span>
</span><span id="line-85"></span><span>  </span><span id="c_CreateRectRgnIndirect"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreateRectRgnIndirect"><span class="hs-identifier hs-var">c_CreateRectRgnIndirect</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#LPRECT"><span class="hs-identifier hs-type">LPRECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-86"></span><span>
</span><span id="line-87"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createRoundRectRgn"><span class="hs-identifier hs-type">createRoundRectRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-88"></span><span id="createRoundRectRgn"><span class="annot"><span class="annottext">createRoundRectRgn :: RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createRoundRectRgn"><span class="hs-identifier hs-var hs-var">createRoundRectRgn</span></a></span></span><span> </span><span id="local-6989586621679109265"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109265"><span class="hs-identifier hs-var">x0</span></a></span></span><span> </span><span id="local-6989586621679109264"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109264"><span class="hs-identifier hs-var">y0</span></a></span></span><span> </span><span id="local-6989586621679109263"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109263"><span class="hs-identifier hs-var">x1</span></a></span></span><span> </span><span id="local-6989586621679109262"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109262"><span class="hs-identifier hs-var">y1</span></a></span></span><span> </span><span id="local-6989586621679109261"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109261"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span id="local-6989586621679109260"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109260"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-89"></span><span>  </span><span id="local-6989586621679109259"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109259"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreateRoundRectRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; RegionType
-&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreateRoundRectRgn"><span class="hs-identifier hs-var">c_CreateRoundRectRgn</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109265"><span class="hs-identifier hs-var">x0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109264"><span class="hs-identifier hs-var">y0</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109263"><span class="hs-identifier hs-var">x1</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109262"><span class="hs-identifier hs-var">y1</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109261"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109260"><span class="hs-identifier hs-var">w</span></a></span><span>
</span><span id="line-90"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109259"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-91"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreateRoundRectRgn&quot;</span><span>
</span><span id="line-92"></span><span>  </span><span id="c_CreateRoundRectRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreateRoundRectRgn"><span class="hs-identifier hs-var">c_CreateRoundRectRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="System.Win32.Types.html#INT"><span class="hs-identifier hs-type">INT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-93"></span><span>
</span><span id="line-94"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#createPolygonRgn"><span class="hs-identifier hs-type">createPolygonRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#POINT"><span class="hs-identifier hs-type">POINT</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PolyFillMode"><span class="hs-identifier hs-type">PolyFillMode</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-95"></span><span id="createPolygonRgn"><span class="annot"><span class="annottext">createPolygonRgn :: [POINT] -&gt; RegionType -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Region.html#createPolygonRgn"><span class="hs-identifier hs-var hs-var">createPolygonRgn</span></a></span></span><span> </span><span id="local-6989586621679109255"><span class="annot"><span class="annottext">[POINT]
</span><a href="#local-6989586621679109255"><span class="hs-identifier hs-var">ps</span></a></span></span><span> </span><span id="local-6989586621679109254"><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109254"><span class="hs-identifier hs-var">mode</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-96"></span><span>  </span><span class="annot"><span class="annottext">[POINT] -&gt; (Ptr POINT -&gt; Int -&gt; IO HRGN) -&gt; IO HRGN
forall a. [POINT] -&gt; (Ptr POINT -&gt; Int -&gt; IO a) -&gt; IO a
</span><a href="Graphics.Win32.GDI.Types.html#withPOINTArray"><span class="hs-identifier hs-var">withPOINTArray</span></a></span><span> </span><span class="annot"><span class="annottext">[POINT]
</span><a href="#local-6989586621679109255"><span class="hs-identifier hs-var">ps</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr POINT -&gt; Int -&gt; IO HRGN) -&gt; IO HRGN)
-&gt; (Ptr POINT -&gt; Int -&gt; IO HRGN) -&gt; IO HRGN
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109252"><span class="annot"><span class="annottext">Ptr POINT
</span><a href="#local-6989586621679109252"><span class="hs-identifier hs-var">point_array</span></a></span></span><span> </span><span id="local-6989586621679109251"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109251"><span class="hs-identifier hs-var">npoints</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-97"></span><span>  </span><span id="local-6989586621679109250"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109250"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CreatePolygonRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO (Ptr ()) -&gt; IO (Ptr ())) -&gt; IO (Ptr ()) -&gt; IO (Ptr ())
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span>
</span><span id="line-98"></span><span>    </span><span class="annot"><span class="annottext">Ptr POINT -&gt; Int -&gt; RegionType -&gt; IO (Ptr ())
</span><a href="Graphics.Win32.GDI.Region.html#c_CreatePolygonRgn"><span class="hs-identifier hs-var">c_CreatePolygonRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr POINT
</span><a href="#local-6989586621679109252"><span class="hs-identifier hs-var">point_array</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109251"><span class="hs-identifier hs-var">npoints</span></a></span><span> </span><span class="annot"><span class="annottext">RegionType
</span><a href="#local-6989586621679109254"><span class="hs-identifier hs-var">mode</span></a></span><span>
</span><span id="line-99"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109250"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-100"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CreatePolygonRgn&quot;</span><span>
</span><span id="line-101"></span><span>  </span><span id="c_CreatePolygonRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_CreatePolygonRgn"><span class="hs-identifier hs-var">c_CreatePolygonRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Ptr.html#Ptr"><span class="hs-identifier hs-type">Ptr</span></a></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#POINT"><span class="hs-identifier hs-type">POINT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PolyFillMode"><span class="hs-identifier hs-type">PolyFillMode</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-102"></span><span>
</span><span id="line-103"></span><span class="hs-comment">-- Needs to do proper error test for EqualRgn; GSL ???</span><span>
</span><span id="line-104"></span><span>
</span><span id="line-105"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h EqualRgn&quot;</span><span>
</span><span id="line-106"></span><span>  </span><span id="equalRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#equalRgn"><span class="hs-identifier hs-var">equalRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-107"></span><span>
</span><span id="line-108"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#fillRgn"><span class="hs-identifier hs-type">fillRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HBRUSH"><span class="hs-identifier hs-type">HBRUSH</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-109"></span><span id="fillRgn"><span class="annot"><span class="annottext">fillRgn :: Ptr () -&gt; HRGN -&gt; Ptr () -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Region.html#fillRgn"><span class="hs-identifier hs-var hs-var">fillRgn</span></a></span></span><span> </span><span id="local-6989586621679109244"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109244"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span id="local-6989586621679109243"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109243"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109242"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109242"><span class="hs-identifier hs-var">brush</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-110"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109243"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO ()) -&gt; IO ()) -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109241"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109241"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-111"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;FillRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; Ptr () -&gt; Ptr () -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_FillRgn"><span class="hs-identifier hs-var">c_FillRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109244"><span class="hs-identifier hs-var">dc</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109241"><span class="hs-identifier hs-var">p_rgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109242"><span class="hs-identifier hs-var">brush</span></a></span><span>
</span><span id="line-112"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h FillRgn&quot;</span><span>
</span><span id="line-113"></span><span>  </span><span id="c_FillRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_FillRgn"><span class="hs-identifier hs-var">c_FillRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HBRUSH"><span class="hs-identifier hs-type">HBRUSH</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#invertRgn"><span class="hs-identifier hs-type">invertRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-116"></span><span id="invertRgn"><span class="annot"><span class="annottext">invertRgn :: Ptr () -&gt; HRGN -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Region.html#invertRgn"><span class="hs-identifier hs-var hs-var">invertRgn</span></a></span></span><span> </span><span id="local-6989586621679109237"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109237"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span id="local-6989586621679109236"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109236"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-117"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109236"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO ()) -&gt; IO ()) -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109235"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109235"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-118"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;InvertRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; Ptr () -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_InvertRgn"><span class="hs-identifier hs-var">c_InvertRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109237"><span class="hs-identifier hs-var">dc</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109235"><span class="hs-identifier hs-var">p_rgn</span></a></span><span>
</span><span id="line-119"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h InvertRgn&quot;</span><span>
</span><span id="line-120"></span><span>  </span><span id="c_InvertRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_InvertRgn"><span class="hs-identifier hs-var">c_InvertRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-121"></span><span>
</span><span id="line-122"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#paintRgn"><span class="hs-identifier hs-type">paintRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-123"></span><span id="paintRgn"><span class="annot"><span class="annottext">paintRgn :: Ptr () -&gt; HRGN -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Region.html#paintRgn"><span class="hs-identifier hs-var hs-var">paintRgn</span></a></span></span><span> </span><span id="local-6989586621679109232"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109232"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span id="local-6989586621679109231"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109231"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-124"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109231"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO ()) -&gt; IO ()) -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109230"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109230"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-125"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;PaintRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; Ptr () -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_PaintRgn"><span class="hs-identifier hs-var">c_PaintRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109232"><span class="hs-identifier hs-var">dc</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109230"><span class="hs-identifier hs-var">p_rgn</span></a></span><span>
</span><span id="line-126"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h PaintRgn&quot;</span><span>
</span><span id="line-127"></span><span>  </span><span id="c_PaintRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_PaintRgn"><span class="hs-identifier hs-var">c_PaintRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-128"></span><span>
</span><span id="line-129"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#frameRgn"><span class="hs-identifier hs-type">frameRgn</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HBRUSH"><span class="hs-identifier hs-type">HBRUSH</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-130"></span><span id="frameRgn"><span class="annot"><span class="annottext">frameRgn :: Ptr () -&gt; HRGN -&gt; Ptr () -&gt; Int -&gt; Int -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Region.html#frameRgn"><span class="hs-identifier hs-var hs-var">frameRgn</span></a></span></span><span> </span><span id="local-6989586621679109227"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109227"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span id="local-6989586621679109226"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109226"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109225"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109225"><span class="hs-identifier hs-var">brush</span></a></span></span><span> </span><span id="local-6989586621679109224"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109224"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span id="local-6989586621679109223"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109223"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-131"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109226"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO ()) -&gt; IO ()) -&gt; (Ptr () -&gt; IO ()) -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109222"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109222"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-132"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;FrameRgn&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; Ptr () -&gt; Ptr () -&gt; Int -&gt; Int -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_FrameRgn"><span class="hs-identifier hs-var">c_FrameRgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109227"><span class="hs-identifier hs-var">dc</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109222"><span class="hs-identifier hs-var">p_rgn</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109225"><span class="hs-identifier hs-var">brush</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109224"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109223"><span class="hs-identifier hs-var">h</span></a></span><span>
</span><span id="line-133"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h FrameRgn&quot;</span><span>
</span><span id="line-134"></span><span>  </span><span id="c_FrameRgn"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_FrameRgn"><span class="hs-identifier hs-var">c_FrameRgn</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HBRUSH"><span class="hs-identifier hs-type">HBRUSH</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-135"></span><span>
</span><span id="line-136"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#ptInRegion"><span class="hs-identifier hs-type">ptInRegion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-137"></span><span id="ptInRegion"><span class="annot"><span class="annottext">ptInRegion :: HRGN -&gt; Int -&gt; Int -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#ptInRegion"><span class="hs-identifier hs-var hs-var">ptInRegion</span></a></span></span><span> </span><span id="local-6989586621679109219"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109219"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109218"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109218"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621679109217"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109217"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-138"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO Bool) -&gt; IO Bool
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109219"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO Bool) -&gt; IO Bool) -&gt; (Ptr () -&gt; IO Bool) -&gt; IO Bool
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109216"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109216"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-139"></span><span>  </span><span class="annot"><span class="annottext">Ptr () -&gt; Int -&gt; Int -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_PtInRegion"><span class="hs-identifier hs-var">c_PtInRegion</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109216"><span class="hs-identifier hs-var">p_rgn</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109218"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679109217"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-140"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h PtInRegion&quot;</span><span>
</span><span id="line-141"></span><span>  </span><span id="c_PtInRegion"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_PtInRegion"><span class="hs-identifier hs-var">c_PtInRegion</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-142"></span><span>
</span><span id="line-143"></span><span class="annot"><a href="Graphics.Win32.GDI.Region.html#rectInRegion"><span class="hs-identifier hs-type">rectInRegion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RECT"><span class="hs-identifier hs-type">RECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-144"></span><span id="rectInRegion"><span class="annot"><span class="annottext">rectInRegion :: HRGN -&gt; RECT -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#rectInRegion"><span class="hs-identifier hs-var hs-var">rectInRegion</span></a></span></span><span> </span><span id="local-6989586621679109213"><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109213"><span class="hs-identifier hs-var">rgn</span></a></span></span><span> </span><span id="local-6989586621679109212"><span class="annot"><span class="annottext">RECT
</span><a href="#local-6989586621679109212"><span class="hs-identifier hs-var">rect</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-145"></span><span>  </span><span class="annot"><span class="annottext">HRGN -&gt; (Ptr () -&gt; IO Bool) -&gt; IO Bool
forall a b. ForeignPtr a -&gt; (Ptr a -&gt; IO b) -&gt; IO b
</span><a href="../../base/src/GHC.ForeignPtr.html#withForeignPtr"><span class="hs-identifier hs-var">withForeignPtr</span></a></span><span> </span><span class="annot"><span class="annottext">HRGN
</span><a href="#local-6989586621679109213"><span class="hs-identifier hs-var">rgn</span></a></span><span> </span><span class="annot"><span class="annottext">((Ptr () -&gt; IO Bool) -&gt; IO Bool) -&gt; (Ptr () -&gt; IO Bool) -&gt; IO Bool
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621679109211"><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109211"><span class="hs-identifier hs-var">p_rgn</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-146"></span><span>  </span><span class="annot"><span class="annottext">RECT -&gt; (LPRECT -&gt; IO Bool) -&gt; IO Bool
forall a. RECT -&gt; (LPRECT -&gt; IO a) -&gt; IO a
</span><a href="Graphics.Win32.GDI.Types.html#withRECT"><span class="hs-identifier hs-var">withRECT</span></a></span><span> </span><span class="annot"><span class="annottext">RECT
</span><a href="#local-6989586621679109212"><span class="hs-identifier hs-var">rect</span></a></span><span> </span><span class="annot"><span class="annottext">((LPRECT -&gt; IO Bool) -&gt; IO Bool) -&gt; (LPRECT -&gt; IO Bool) -&gt; IO Bool
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr () -&gt; LPRECT -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Region.html#c_RectInRegion"><span class="hs-identifier hs-var">c_RectInRegion</span></a></span><span> </span><span class="annot"><span class="annottext">Ptr ()
</span><a href="#local-6989586621679109211"><span class="hs-identifier hs-var">p_rgn</span></a></span><span>
</span><span id="line-147"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h RectInRegion&quot;</span><span>
</span><span id="line-148"></span><span>  </span><span id="c_RectInRegion"><span class="annot"><a href="Graphics.Win32.GDI.Region.html#c_RectInRegion"><span class="hs-identifier hs-var">c_RectInRegion</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Ptr.html#Ptr"><span class="hs-identifier hs-type">Ptr</span></a></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#RECT"><span class="hs-identifier hs-type">RECT</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-149"></span><span>
</span><span id="line-150"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-151"></span><span class="hs-comment">-- End</span><span>
</span><span id="line-152"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-153"></span></pre></body></html>